class TaxonToxinCitation < ActiveRecord::Base
  belongs_to :taxon
  belongs_to :toxin
  belongs_to :data_object

  validates_presence_of :taxon_id, :toxin_id, :data_object_id
  validates_uniqueness_of :taxon_id, :scope => [:toxin_id, :data_object_id]
  validates_uniqueness_of :toxin_id, :scope => [:taxon_id, :data_object_id]
  validates_uniqueness_of :data_object_id, :scope => [:toxin_id, :taxon_id]

end
